export function getSyncRouter(routerList, prefix) {
  return routerList.map((item) => {
    return {
      path: item.url.split(prefix)[1],
      name: item.path,
      component: () => import(`@/views/${item.path}.vue`),
      children: item.children ? getSyncRouter(item.children) : [],
    };
  });
}
